<div class="container">
    <h1>登录</h1>
    <form (submit)="onSubmit()" >
        <div class="form-group">
            <label for="userName">用户名</label>
            <input type="text" class="form-control" id="userName" required  [(ngModel)]="loginForm.userName" name="userName">
        </div>
        <div class="form-group">
            <label for="password">密码</label>
            <input type="text" class="form-control" id="password" required  [(ngModel)]="loginForm.password" name="password">
        </div>
        <button type="submit" class="btn btn-default">提交</button>
        < <button type="button" class="btn btn-default" (click)="queryAdd()">查询</button>
    </form>
</div>